import java.util.Locale;
import java.util.Scanner;

/**
 * @Author YuanYuan
 * @Date 2022/10/19
 * @Time 12:11
 */
public class TestDemo {
    public static void main(String[] args) {
                Scanner in = new Scanner(System.in);
                int n = in.nextInt()+2;
                int m = in.nextInt()+2;
                //大一圈,方便处理第一行和第一列
                int[][] arr = new int[n][m];
                arr[1][1] = 1;
                for(int i = 1;i<n;i++) {
                    for(int j = 1;j<m;j++) {
                        if(i!=1 || j!=1) {
                            //上面加左面
                            arr[i][j] = arr[i-1][j] + arr[i][j-1];
                            System.out.print(arr[i][j]);
                        }
                    }
                }
                System.out.println(arr[n-1][m-1]);

            }

    public static void main2(String[] args) {
        String x = "fmn";
        String z = x.toUpperCase();
        String y = x.replace('f','F');
        y = y+ "wxy";
        System.out.println(y);
        System.out.println(z);
    }
    public static void main1(String[] args) {
        int i = 0;
        Integer j = new Integer(0);
        System.out.println(i == j);
        System.out.println(j.equals(i));
    }
}
